
public class ReverseString1 {
	 public static void main(String args[])
	   {
	      String original="Sample String used to test";
	      StringBuffer a = new StringBuffer(original);
	      String reverse = a.reverse().toString();
	      
	      System.out.println("Original String\n" + original);
	      System.out.println("Reverse String\n" + reverse);
	   }
}
/*Result
Original String
Sample String used to test
Reverse String
tset ot desu gnirtS elpmaS
*/